raar.vectorimage
Class RAGVectorObject_Shape

java.lang.Object
  extended byraar.vectorimage.RAGVectorObject
      extended byraar.vectorimage.RAGVectorObject_Shape
All Implemented Interfaces:
java.io.Serializable

public class RAGVectorObject_Shape
extends RAGVectorObject

A GVectorObject that does not have an underlying object source but is defined by its shape.

Undocumented in JavaDoc. Quite straightforward.

See Also:
Serialized Form

Constructor Summary
RAGVectorObject_Shape()
           
 
Method Summary
 java.awt.Color getColor()
          Return the colour for the object.
 float getOpacity()
          Return the opacity (0.0F = transparent, 1.0F = opaque).
 java.awt.Shape getShape()
          Create a shape for the object.
 boolean isFilled()
          Return whether to fill or draw this object.
 boolean isPerceivable()
          Return whether the object is perceivable by sensors.
 void setColor(java.awt.Color c)
           
 void setFilled(boolean b)
           
 void setOpacity(float f)
           
 void setShape(java.awt.Shape s)
           
 
Methods inherited from class raar.vectorimage.RAGVectorObject
createGVectorObject, getObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAGVectorObject_Shape

public RAGVectorObject_Shape()
Method Detail

setShape

public void setShape(java.awt.Shape s)

getShape

public java.awt.Shape getShape()
Description copied from class: RAGVectorObject
Create a shape for the object.

Overrides:
getShape in class RAGVectorObject

setColor

public void setColor(java.awt.Color c)

getColor

public java.awt.Color getColor()
Description copied from class: RAGVectorObject
Return the colour for the object.

Overrides:
getColor in class RAGVectorObject

setFilled

public void setFilled(boolean b)

isFilled

public boolean isFilled()
Description copied from class: RAGVectorObject
Return whether to fill or draw this object. Fill by default.

Overrides:
isFilled in class RAGVectorObject

isPerceivable

public boolean isPerceivable()
Description copied from class: RAGVectorObject
Return whether the object is perceivable by sensors.

Overrides:
isPerceivable in class RAGVectorObject

setOpacity

public void setOpacity(float f)

getOpacity

public float getOpacity()
Description copied from class: RAGVectorObject
Return the opacity (0.0F = transparent, 1.0F = opaque). By default, objects are opaque.

Overrides:
getOpacity in class RAGVectorObject